using System.Collections.Generic;
using UnityEngine;

namespace Helpers
{
    public class PointHelper : MonoBehaviour
    {
        private static Dictionary<string, Transform> _store = new Dictionary<string, Transform>();

        public static Transform Find(string label)
        {
            return _store[label.Trim()];
        }

        private void Start()
        {
            _store.Add(name.Trim(), transform);
        }

        private void OnDestroy()
        {
            _store.Remove(name.Trim());
        }
    }
}